package DuoTai;

public class Application {
    public static void main(String[] args) {
        Person p = new Student();//多态

//        Person p1 = new Person();
//        System.out.println(p1.age);
//        Student p2 = new Student();
//        System.out.println(p.earn());

//        System.out.println(p2 instanceof Person);
//        Student p3  = (Student)p1;
//        p.run();
//        System.out.println(p.age);
    }

}
